﻿using System;

namespace Moonlite.Data.Configuration.Implementation
{
    internal sealed class MoonliteBuildConfigurationElement : ConfigurationElement
    {
        public static readonly Type Type = typeof(MoonliteBuildConfigurationElement);

        private bool saveProjectBeforeCompiling;

        public override string Name
        {
            get { return "Build"; }
        }

        [ConfigurationProperty(true, typeof(Shell), "SaveProjectBeforeCompiling")]
        public bool SaveProjectBeforeCompiling
        {
            get { return saveProjectBeforeCompiling; }
            set
            {
                saveProjectBeforeCompiling = value;
                RaisePropertyChangedEvent("SaveProjectBeforeCompiling");
            }
        }
    }
}
